<template>
  <div class="">
    用户 {{ $store.state.count  }}
    <el-button type="primary" @click="add">按钮</el-button>
  </div>
</template>
<script>
export default {
  name: '',
  components: {},
  data () {
    return {}
  },
  // 计算属性
  computed: {},
  watch: {},
  mounted () {},
  methods: {
    add () {
      this.$store.commit('increment')
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
